Parse cache container. Lost in rework.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 8 Mar 2004 15:54:25 +0000 (15:54 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 8 Mar 2004 15:54:25 +0000 (15:54 +0000)
gpsbabel/gpx.c

index 5b137c4d021f349795b6d4566e56ef78e95a0041..93d1eea8a8ca6954128bb41b70fd8d6bddb96a03 100644 (file)
@@ -78,6 +78,7 @@ typedef enum {
        tt_wpt_type,
        tt_wpt_urlname,
        tt_cache_container,
+       tt_cache_type,
        tt_cache_difficulty,
        tt_cache_terrain,
        tt_cache_hint,
@@ -144,6 +145,7 @@ tag_mapping tag_path_map[] = {
        { tt_wpt_sym, 0, "/gpx/wpt/sym" },
        { tt_wpt_type, 1, "/gpx/wpt/type" },
        { tt_cache_container, 1, "/gpx/wpt/groundspeak:cache/groundspeak:container" },
+       { tt_cache_type, 1, "/gpx/wpt/groundspeak:cache/groundspeak:type" },
        { tt_cache_difficulty, 1, "/gpx/wpt/groundspeak:cache/groundspeak:difficulty" },
        { tt_cache_terrain, 1, "/gpx/wpt/groundspeak:cache/groundspeak:terrain" },
        { tt_cache_hint, 1, "/gpx/wpt/groundspeak:cache/groundspeak:encoded_hints" },
@@ -597,6 +599,9 @@ gpx_end(void *data, const char *el)
        case tt_cache_container:
                wpt_tmp->gc_data.container = gs_mkcont(cdatastrp);
                break;
+       case tt_cache_type:
+               wpt_tmp->gc_data.type = gs_mktype(cdatastrp);
+               break;
        case tt_cache_difficulty:
                sscanf(cdatastrp, "%f", &x);
                wpt_tmp->gc_data.diff = x * 10;